package com.atdel.demo32.entity;


import com.atdel.demo32.anno.Column;

/**
 * @BelongsProject: java_study
 * @BelongsPackage: com.atdel.demo32.entity
 * @Author: Del
 * @CreateTime: 2025-03-30  17:19
 * @Description: 实体类
 * @Version: 1.0
 */
public class UserInfo {
    private int id;
    @Column(columnName = "user_name")
    private String name;

    public UserInfo() {
    }

    public UserInfo(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
